﻿module Sustainalytics.Shell {

    import Authentication = Sustainalytics.Authentication;

    export class ShellController {

        constructor(
            private $location: ng.ILocationService,
            private AuthenticationService: Authentication.IAuthenticationService) {
        }

        public logout() {
            this.AuthenticationService.logout();
        }

        public goToAccountPage() {
            var ctx = this;

            ctx.$location.path('/account');
        }
    }

    angular.module('shell').controller('ShellController',
        ['$location', 'AuthenticationService', ShellController]);
}

